package CSS::Builder::Selector::Attribute;
use Moose;

with 'CSS::Builder::Roles::List';

# E[foo]
# E[foo="warning"]
# E[foo~="warning"]
# SPAN[hello="Cleveland"][goodbye="Columbus"] { color: blue; }
has 'attribute'    => ( isa => 'Any' , is => 'rw');

sub css {
      my $self = shift;
      
      #my $selectors = $self->list;
      #my $c = $self->docss($selectors->[0]);
      return '[' . $self->attribute . ']';# . ($c ? $c : '');
}


1;